<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>babel-把ES6转换成ES5</title>
</head>
<!-- 
    1.安装工具 
    babel-cli: babel命令行的工具
    babel-preset-env: 做转换用的  
    browserify(webpack): 打包工具

    npm init --yes
    npm i babel-cli babel-preset-env browserify -D
    2.对文件语法做转换
    npx babel js/ -d dist/js --presets=babel-preset-env
    3.打包
    npx browserify dist/js/m1.js -o dist/bundle.js
 -->
<script>
    //babel:把ES6转换成ES5(浏览器能识别的语法)
    
</script>
</html>